package com.qf.study;

import com.qf.study.mapper.UserMapper;
import com.qf.study.pojo.User;
import com.qf.study.utils.MyBatisUtils;
import org.junit.Test;

/**
 * @author GSh
 * @packageName:com.qf.study
 * @className:HelloMybatis
 * @description
 * @create 2021-07-30 20:03
 */
public class HelloMybatis {
    @Test
    public void test() {
        UserMapper mapper = MyBatisUtils.getMapper(UserMapper.class);
        User user = mapper.selectById(2);
        System.out.println(user);


    }

}
